<div id="subnav">
    <div class="container_12">
        <div class="grid_12">
            <ul>
                <?php foreach($subnavLinks as $link): ?>
                    <li>
                        <?php echo CHtml::link($link->name,$link->url,array(
                            'class'=>$link->class,
                        )); ?>
                    </li>
                <?php endforeach; ?>
            </ul>
        </div>
    </div>
    <div style="clear: both;"></div>
</div>